layui.use(['table', 'form', 'func', 'HttpRequest', 'util', 'upload'], function () {
    var $ = layui.$;

    var HttpRequest = layui.HttpRequest;



    var httpRequest = new HttpRequest(Feng.ctxPath + "/view/virus/news/load?size=50", 'get');

    var result = httpRequest.start();

    var newsArray = result.data;

    var newsList = $("#newsList");
    if (null != newsArray && newsArray.length > 0) {
        for (var i = 0; i < newsArray.length; i++) {


            var tr = "<tr><td  width='50px'> <span class=\"layui-badge-dot layui-bg-blue\"></span></td><td><li> <a href='" + newsArray[i].href + "' style='font-size:18px;line-height: 30px' target='_blank'>" + newsArray[i].title + " </a></li></td></tr>";
            newsList.after(tr);
        }

    }




});
